package com.sinodata.bsm.common.vo;

import java.util.*;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * HealthStatusHis entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "HEALTH_STATUS_HIS")
public class HealthStatusHis implements java.io.Serializable {

    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = -8414460877095576967L;

    // Fields   
    private String id;
    private Long resId;
    private Integer healthDegree;
    private Date startTime;
    private Date endTime;

    // Constructors

    /** default constructor */
    public HealthStatusHis() {
    }

    /** minimal constructor */
    public HealthStatusHis(String id) {
        this.id = id;
    }

    /** full constructor */
    public HealthStatusHis(String id, Long resId, Integer healthDegree, Date startTime, Date endTime) {
        this.id = id;
        this.resId = resId;
        this.healthDegree = healthDegree;
        this.startTime = startTime;
        this.endTime = endTime;
    }

    // Property accessors
    @Id
    @Column(name = "ID", unique = true, nullable = false, length = 64)
    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Column(name = "RES_ID", precision = 18, scale = 0)
    public Long getResId() {
        return this.resId;
    }

    public void setResId(Long resId) {
        this.resId = resId;
    }

    @Column(name = "HEALTH_DEGREE", precision = 3, scale = 0)
    public Integer getHealthDegree() {
        return this.healthDegree;
    }

    public void setHealthDegree(Integer healthDegree) {
        this.healthDegree = healthDegree;
    }

    @Column(name = "START_TIME", length = 7)
    public Date getStartTime() {
        return this.startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    @Column(name = "END_TIME", length = 7)
    public Date getEndTime() {
        return this.endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    @Override
    public String toString() {
        return "HealthStatusHis [id=" + id + ", resId=" + resId + ", healthDegree=" + healthDegree + ", startTime=" + startTime + ", endTime=" + endTime + "]";
    }

}